package com.wsd.smartcarwasher.dao;

import com.wsd.smartcarwasher.domain.Car;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface CarDao {

    List<Car> getCarsByUserId(String userId) throws DataAccessException;

    int addCar(Car car) throws DataAccessException;

    Car queryCarByUserIdAndPlateNumber(@Param("userId") String userId, @Param("plateNumber") String plateNumber) throws DataAccessException;

    int removeCar(@Param("id") int id) throws DataAccessException;

}
